package ui;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.UIManager;
import java.awt.event.ActionEvent;

public class CustomerMenu extends JPanel {
	private JLabel lblCustomerMenu;
	private JLabel lblXA9;
	private JLabel lblLogo;
	private JLabel lblPleaseSelect;
	private JButton btnViewBalance;
	private JButton btnWithdrawCash;
	private JButton btnDepositFunds;
	private JButton btnLogout;

	public CustomerMenu() {
		setBackground(UIManager.getColor("Label.background"));
		setLayout(null);

		lblCustomerMenu = new JLabel("Customer menu");
		lblCustomerMenu.setOpaque(true);
		lblCustomerMenu.setBackground(UIManager.getColor("Label.background"));
		lblCustomerMenu.setHorizontalAlignment(SwingConstants.CENTER);
		lblCustomerMenu.setForeground(Color.BLACK);
		lblCustomerMenu.setFont(new Font("Eurostile", Font.BOLD, 24));
		lblCustomerMenu.setBounds(0, 94, 735, 28);
		add(lblCustomerMenu);

		lblPleaseSelect = new JLabel(
				"Please select one of following transactions");
		lblPleaseSelect.setHorizontalAlignment(SwingConstants.CENTER);
		lblPleaseSelect.setForeground(Color.BLACK);
		lblPleaseSelect.setFont(new Font("Eurostile", Font.PLAIN, 14));
		lblPleaseSelect.setBounds(0, 128, 735, 16);
		add(lblPleaseSelect);

		btnViewBalance = new JButton("View balance");
		btnViewBalance
				.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 13));
		btnViewBalance.setBounds(156, 170, 200, 55);
		add(btnViewBalance);

		btnWithdrawCash = new JButton("Withdraw cash");
		btnWithdrawCash.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD,
				13));
		btnWithdrawCash.setBounds(369, 170, 200, 55);
		add(btnWithdrawCash);

		btnDepositFunds = new JButton("Deposit funds");
		btnDepositFunds.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD,
				13));
		btnDepositFunds.setBounds(369, 233, 200, 55);
		add(btnDepositFunds);

		btnLogout = new JButton("Logout");
		btnLogout.setForeground(UIManager.getColor("CheckBox.select"));
		btnLogout.setFont(new Font("Eurostile", Font.PLAIN | Font.BOLD, 13));
		btnLogout.setBounds(156, 233, 200, 50);
		add(btnLogout);

		lblXA9 = new JLabel("\u00A92013 CBS HA.IT (Gruppe XA-9)\t\t ");
		lblXA9.setForeground(UIManager.getColor("Button.darkShadow"));
		lblXA9.setBackground(UIManager.getColor("Button.darkShadow"));
		lblXA9.setHorizontalAlignment(SwingConstants.CENTER);
		lblXA9.setFont(new Font("Eurostile", Font.PLAIN, 11));
		lblXA9.setBounds(0, 423, 735, 50);
		add(lblXA9);

		lblLogo = new JLabel("");
		lblLogo.setIcon(new ImageIcon(
				"/Users/martinotto-sidelmann/Desktop/Zombium.png"));
		lblLogo.setBounds(530, 12, 200, 70);
		add(lblLogo);

	}

	public JButton getBtnViewBalance() {
		return btnViewBalance;
	}

	public JButton getBtnWithdrawCash() {
		return btnWithdrawCash;
	}

	public JButton getBtnDepositFunds() {
		return btnDepositFunds;
	}

	public JButton getBtnLogout() {
		return btnLogout;
	}

	public void addActionListener(ActionListener l) {
		btnViewBalance.addActionListener(l);
		btnWithdrawCash.addActionListener(l);
		btnDepositFunds.addActionListener(l);
		btnLogout.addActionListener(l);

	}

}
